# -*- coding: UTF-8 -*-
'''
常用的公共变量
'''


class EXPECT:
    EXPECT_SUCCESS_CODE = '200'
    EXPECT_SUCCESS_MSG = 'SUCCESS'


expect = EXPECT()


class RESPONSE:
    '''

    '''

    class EXPECT:
        #  2xx
        STATUS_CODE_SUCCESS = 200
        STATUS_CODE_CREATE = 201
        # 4xx   客户端错误返回码
        STATUS_CODE_UNAUTHORIZED = 401  # 未授权
        STATUS_CODE_FORBIDEN = 403  # 禁止
        STATUS_CODE_NOT_FOUND = 404  # 未找到
        STATUS_CODE_METHOD_NOT_ALLOWED = 405  # 方法禁用
        STATUS_CODE_REQUEST_TIMEOUT = 408  # 请求超时
        # 5xx   服务器返回错误码
        STATUS_CODE_SERVER_INTERNAL_ERROR = 500  # 服务器内部错误
        STATUS_CODE_BAD_GATEWAY = 502  # 错误网关
        STATUS_CODE_SERVICE_CURRENTLY_UNAVAILABLE = 503  # 服务不可用
        STATUS_CODE_GATEWAY_TIMEOUT = 504  # 网关超时
        STATUS_CODE_PROTOCOL_VERSION_NOT_SUPPORTED = 505  # http协议版本不支持


response_expect = RESPONSE().EXPECT()
